<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@include file="/WEB-INF/jsp/front/common/head.jsp"%>
<!DOCTYPE html>
<!-- saved from url=(0038)https://cy.ncss.org.cn/search/projects -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description"
	content="全国大学生创业服务网(cy.ncss.org.cn)，是中华人民共和国教育部唯一专门宣传、鼓励、引导、帮助大学生创业的官方网站。">
<meta http-equiv="x-dns-prefetch-control" content="on">
<link rel="dns-prefetch" href="https://t1.chei.com.cn/">
<link rel="dns-prefetch" href="https://t2.chei.com.cn/">
<link rel="dns-prefetch" href="https://t3.chei.com.cn/">
<link rel="dns-prefetch" href="https://t4.chei.com.cn/">
<link rel="dns-prefetch" href="https://www.google-analytics.com/">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="max-age=3600">
<!-- <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<meta HTTP-EQUIV="Expires" CONTENT="0" /> -->
<link rel="icon"
	href="https://t2.chei.com.cn/ncss/cy/web/img/favicon.ico">
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/bootstrap.min-1.0.0.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/iconfont-1.0.0.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/common-1.0.0.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/modal-1.0.1.css">
<script async=""
	src="${pageContext.request.contextPath }/statics/js/analytics.js.下载"></script>
<script
	src="${pageContext.request.contextPath }/statics/js/jquery-1.11.1.min.js.下载"></script>
<script
	src="${pageContext.request.contextPath }/statics/js/bootstrap.min-1.0.0.js.下载"></script>
<script
	src="${pageContext.request.contextPath }/statics/js/back_to_top-1.0.0.js.下载"></script>
<title>查看大赛</title>
<script>
	(function(i, s, o, g, r, a, m) {
		i['GoogleAnalyticsObject'] = r;
		i[r] = i[r] || function() {
			(i[r].q = i[r].q || []).push(arguments)
		}, i[r].l = 1 * new Date();
		a = s.createElement(o), m = s.getElementsByTagName(o)[0];
		a.async = 1;
		a.src = g;
		m.parentNode.insertBefore(a, m)
	})(window, document, 'script',
			'https://www.google-analytics.com/analytics.js', 'ga');
	ga('create', 'UA-105074615-4', 'auto');
	ga('send', 'pageview');
</script>
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/pagination.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/project-search-1.0.1.css">
<style>
.project-search-map-item::after {
	width: 1046px;
}

.project-search-map-item .map-item-title {
	width: 200px;
}

.map-item-box>li.map-item-all-btn {
	left: 135px;
}

.project-search-list .synopsis {
	max-width: 420px;
}
</style>
</head>

<body>
	<div class="main-content">

		<div class="container main-container">
			<div class="project-search-list">
				<table class="table table-list">
					<colgroup>
						<col width="160">
						<col width="100">
						<col width="420">
						<col width="100">
					</colgroup>
					<tbody>
						<tr>
							<th>id</th>
							<th>大赛编码</th>
							<th>大赛名称</th>
							<th>大赛内容</th>
							<th>大赛级别</th>
							<th>报名</th>
						</tr>
						<c:forEach var="contest" items="${contestList}" varStatus="status">
							<tr id='node-1' class="parent collapsed">
								<td class="hidden-xs"><span id="id"> <a class="entre-block" href="${pageContext.request.contextPath }/front/contest/contestview.html?id=${contest.id}">
											${contest.id} </a>
								</span></td>
								<td class="hidden-xs"><span>${contest.conCode}</span></td>
								<td class="hidden-xs"><span> <a class="entre-block"
										href="${pageContext.request.contextPath }/front/contest/contestview.html?id=${contest.id}">
											${contest.conName} </a>
								</span></td>
								<td class="hidden-xs"><span> <a class="entre-block"
										href="${pageContext.request.contextPath }/front/contest/contestview.html?id=${contest.id}">
											${contest.details}</a></span></td>
								<td class="hidden-xs"><span> <a class="entre-block"
										href="${pageContext.request.contextPath }/front/contest/contestview.html?id=${contest.id}">
											${contest.levName}</a></span></td>
								<td class="hidden-xs"><span><a class="entre-block"
										href="${pageContext.request.contextPath }/front/sign.html">报名参赛</a></span></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<!-- <div class="project-search-pages pages">
				<div id="Pagination" class="Pagination">
					<div class="pagination">
						<a class="current prev">上一页</a><a class="current">1</a><a
							href="https://cy.ncss.org.cn/search/projects#">2</a><a
							href="https://cy.ncss.org.cn/search/projects#">3</a><span
							class="pagination-break">...</span><a
							href="https://cy.ncss.org.cn/search/projects#" class="ep">74189</a><a
							href="https://cy.ncss.org.cn/search/projects#" class="next">下一页
						</a>
					</div>
				</div>
				<div class="searchPage">
					<span class="page-go">&nbsp;&nbsp;到第<input type="text">页
					</span> <a href="javascript:;" class="my-page-btn">GO</a>
				</div>
				<div id="noResult" class="hidden noResult">没有查询到相关结果</div>
				<div class="page-number">
					总计<span id="pageCount" class="pageCount">1112822</span>个
				</div>
			</div> -->
		</div>
	</div>

	<%@include file="/WEB-INF/jsp/front/common/foot.jsp"%>

	<script type="text/javascript">
		function myFunction(e) {

			var id = document.getElementById("id");
			var baseURI = id.baseURI;
			var length = baseURI.length;
			var httpRequest = new XMLHttpRequest();//第一步：建立所需的对象
			var url = baseURI.substring(0, length - 9) + 'contestview.html?id='
					+ e;
			httpRequest.open('GET', url, true);//第二步：打开连接  将请求参数写在url中  ps:"./Ptest.php?name=test&nameone=testone"
			alert(url);
			httpRequest.send();//第三步：发送请求  将请求参数写在URL中
			/**
			 * 获取数据后的处理程序
			 */
			httpRequest.onreadystatechange = function() {
				if (httpRequest.readyState == 4 && httpRequest.status == 200) {
					var json = httpRequest.responseText;//获取到json字符串，还需解析
					console.log(json);
				}
			};

		}
		//	<a href=""></a>
	</script>

	<!-- 	<script src="./寻找项目_files/jquery.pagination.js.下载"></script>
	<script src="./寻找项目_files/set-page-1.0.0.js.下载"></script>
	<script>
		$(function() {
			// 为下拉菜单按钮绑定移入移出事件
			$(".drop-hover").mouseover(function() {
				// $(this).addClass("text-primary");
				$(this).addClass("dropup");
				$(".drop-menu").removeClass("hidden");
			});
			$(".drop-hover").mouseout(function() {
				$(".drop-menu").addClass("hidden");
				$(this).removeClass("dropup");
			});

			// 为下拉菜单选项绑定移入移出事件
			$(".drop-menu").mouseover(function() {
				// $(".drop-hover").removeClass("text-primary");
				// alert(111);
				$(".drop-hover").addClass("dropup");
				$(".drop-menu").removeClass("hidden");
			});
			$(".drop-menu").mouseout(function() {
				$(".drop-menu a").mouseover(function() {
					$(this).addClass("text-primary");
				});
				$(".drop-menu").addClass("hidden");
				$(".drop-hover").removeClass("dropup");
			});
		});
	</script>

	<script type="text/javascript">
		$(function() {
			//进入页面时给所有“全部”添加选中状态
			$('.map-item-box li.map-item-all-btn a').addClass('selected');

			//展开与折叠
			$('.project-search-map-item .map-item-switch').click(
					function() {
						if ($(this).hasClass('rotate')) {
							$(this).removeClass('rotate');
							$(this).parent().find('.map-item-box').removeClass(
									'map-item-box-open');
						} else {
							$(this).addClass('rotate');
							$(this).parent().find('.map-item-box').addClass(
									'map-item-box-open');
						}
					});
			var parameter = {
				name : '',
				industryCode : '',
				wasBindUniTechnology : '-9',
				investStageCode : '',
				provinceCode : '',
				pageIndex : '0',
				pageSize : 15
			};
			var pageInit = $(".project-search-list")
					.setpage(
							{
								'listUrl' : '/search/projectlist',
								'countUrl' : '/search/projectcount',
								'pageBox' : '.project-search-pages',
								'getBtn' : '#searchBtn',
								'inputGet' : '.input-get',
								'searchBox' : '.top-search-box',
								'searchKey' : 'data-id',
								'searchClass' : '.search-control',
								'beforeDiv' : '<div style="text-align:center;height:64px;line-height:64px;"><img src="//t2.chei.com.cn/ncss/cy/web/img/loading.gif"  style="width:30px;height:30px"></div>',
								'para' : parameter
							});
			pageInit.btnSearch();
			pageInit.initFn();

			//选择选项时，添加选中状态
			$('.map-item-box li a')
					.click(
							function() {
								$(this).parent().parent().find("a")
										.not($(this)).removeClass('selected');
								$(this).addClass('selected');
								$("#industryCodeFake").val(
										$("#industryCode .selected").attr(
												'data-code'));
								$("#wasBindUniTechnologyFake").val(
										$("#wasBindUniTechnology .selected")
												.attr('data-code'));
								$("#investStageCodeFake").val(
										$("#investStageCode .selected").attr(
												'data-code'));
								$("#provinceCodeFake").val(
										$("#provinceCode .selected").attr(
												'data-code'));
								pageInit.btnSearch();
							});
			$(".project-search-list").on(
					"click",
					"*[data-link]",
					function() {
						window.open('/search/'
								+ escapeData($(this).attr("data-link")));
					})
		})
	</script>
</body>
</html> -->